﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="CreditCardEdit.aspx.cs" Inherits="CreditCardEdit" Title="CreditCard Edit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Credit Card - Add/Edit</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:MultiFormView ID="FormView1" DataKeyNames="CreditCardId" runat="server" DataSourceID="CreditCardDataSource">
        <EditItemTemplatePaths>
            <data:TemplatePath Path="~/Admin/UserControls/CreditCardFields.ascx" />
        </EditItemTemplatePaths>
        <InsertItemTemplatePaths>
            <data:TemplatePath Path="~/Admin/UserControls/CreditCardFields.ascx" />
        </InsertItemTemplatePaths>
        <EmptyDataTemplate>
            <b>CreditCard not found!</b>
        </EmptyDataTemplate>
        <FooterTemplate>
            <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                Text="Insert" />
            <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                Text="Update" />
            <asp:Button ID="CancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                Text="Cancel" />
        </FooterTemplate>
    </data:MultiFormView>
    <data:CreditCardDataSource ID="CreditCardDataSource" runat="server" SelectMethod="GetByCreditCardId">
        <parameters>
				<asp:QueryStringParameter Name="CreditCardId" QueryStringField="CreditCardId" Type="String" />

			</parameters>
    </data:CreditCardDataSource>
    <br />
</asp:Content>
